using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeoAnalyticsDesktopTools._Utilities._BigDataConnections
{
    /// <summary>
    /// <para>Copy Dataset From Big Data Connection</para>
    /// <para>Copies a dataset from a big data connection (BDC) to a feature class.</para>
    /// <para>将数据集从大数据连接 （BDC） 复制到要素类。</para>
    /// </summary>    
    [DisplayName("Copy Dataset From Big Data Connection")]
    public class CopyDatasetFromBDC : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CopyDatasetFromBDC()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_layer">
        /// <para>Input Dataset</para>
        /// <para>The point, line, polygon, or table dataset to be copied.</para>
        /// <para>要复制的点、线、面或表数据集。</para>
        /// </param>
        /// <param name="_output">
        /// <para>Output Dataset</para>
        /// <para>The output dataset to be copied from a big data connection.</para>
        /// <para>要从大数据连接复制的输出数据集。</para>
        /// </param>
        public CopyDatasetFromBDC(object _input_layer, object _output)
        {
            this._input_layer = _input_layer;
            this._output = _output;
        }
        public override string ToolboxName => "GeoAnalytics Desktop Tools";

        public override string ToolName => "Copy Dataset From Big Data Connection";

        public override string CallName => "gapro.CopyDatasetFromBDC";

        public override List<string> AcceptEnvironments => ["extent", "outputCoordinateSystem", "parallelProcessingFactor", "workspace"];

        public override object[] ParameterInfo => [_input_layer, _output];

        /// <summary>
        /// <para>Input Dataset</para>
        /// <para>The point, line, polygon, or table dataset to be copied.</para>
        /// <para>要复制的点、线、面或表数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_layer { get; set; }


        /// <summary>
        /// <para>Output Dataset</para>
        /// <para>The output dataset to be copied from a big data connection.</para>
        /// <para>要从大数据连接复制的输出数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _output { get; set; }


        public CopyDatasetFromBDC SetEnv(object extent = null, object outputCoordinateSystem = null, object parallelProcessingFactor = null, object workspace = null)
        {
            base.SetEnv(extent: extent, outputCoordinateSystem: outputCoordinateSystem, parallelProcessingFactor: parallelProcessingFactor, workspace: workspace);
            return this;
        }

    }

}